package com.ylr.basic.framework.feign;

import com.ylr.base.common.tool.Result;
import com.ylr.basic.common.dto.EphemeralDataDto;
import com.ylr.basic.common.vo.ephemeral_data.EphemeralDataQueryVo;
import com.ylr.basic.common.vo.ephemeral_data.EphemeralDataVo;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-07-07 14:56:36
 * className: YbEphemeralDataBaseClient
 * version: 1.0
 * description:
 */
public interface YbEphemeralDataBaseClient {

    /**
     * 保存临时数据接口
     * @param ephemeralDataVo 参数对象
     * @return 结果
     */
    Result<Object> saveEphemeralData(EphemeralDataVo ephemeralDataVo);

    /**
     * 获取临时数据接口
     * @param businessId   业务主键
     * @param businessType 业务类型
     * @return 结果
     */
    Result<EphemeralDataDto> getEphemeralData(Long businessId, Integer businessType);

    /**
     * 批量获取临时数据接口
     * @param ephemeralDataQueryVo 参数对象
     * @return 结果
     */
    Result<List<EphemeralDataDto>> batchGetEphemeralData(EphemeralDataQueryVo ephemeralDataQueryVo);

    /**
     * 删除临时数据接口
     * @param businessId   业务主键
     * @param businessType 业务类型
     * @return 结果
     */
    Result<Object> deleteEphemeralData(Long businessId, Integer businessType);

}
